// /**
function loadLines(){
	var xmlHttp = false;
	var timeout = null;
	if(window.ActiveXObject){
		try {
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	} 
	else if(window.XMLHttpRequest){
		xmlHttp = new XMLHttpRequest();
	}	
	var url = "http://localhost/GpsDemo/index.php/Index/loadLines";
	if(!xmlHttp){
		alert("XMLHttpRequest is not Create!");
	}
	xmlHttp.open("GET",url,true);
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4 && xmlHttp.status == 200){
			var data = xmlHttp.responseText;
			var obj = JSON.parse(data);
			var lines = new Array();
			lines = obj.lines;
			for(i=0;i<lines.length;i++){
			}
			document.getElementById("lines").innerHTML  = innerhtml;		
		}
	}
	xmlHttp.send(null);
}




	function update(){
		timeout = window.setInterval("sendRequest()",4000);
	}
	function stopUpdate(){
		if(timeout != null){
			window.clearInterval(timeout);
		}
	}


// *
	
	